import java.util.Scanner;

public class Test {

    public static void main(String[] args) {
        String s = "I'm, super man";
        int count = 0;
        String [] ret = s.split(" ");
        for (int i = 0; i < ret.length; i++) {
            if(ret[i].length() != 0){
                count++;
            }
        }
        System.out.println(count);
    }

    public static String toLowerCase(String s){
        StringBuilder stringBuilder = new StringBuilder();
        char ch;
        for (int i = 0; i < s.length(); i++) {
            ch = s.charAt(i);
            //先判断是不是字母？
            if(Character.isLetter(ch)){
                //再判断是不是大写？
                if(Character.isUpperCase(ch)){
                    ch = (char)(ch + 32);
                }
            }
            stringBuilder.append(ch);
        }
        return stringBuilder.toString();
    }

    public static void main1(String[] args) {
        String str = "HellOsssAAA";

        String s = toLowerCase(str);

        System.out.println(s);

    }

}
